<!DOCTYPE html>
<html>
<head>
    <title>能量值发放记录表</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.name" @on-enter="query" placeholder="名称"/>
                </i-col>
                <i-col span="4">
                    <i-input v-model="q.energycoin"  placeholder="运动挖矿能量总量" readonly/>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
            <div class="buttons-group">
                <i-button type="success" @click="createEnergyStatiscs"><i class="fa fa-legal"></i>&nbsp;立即执行统计</i-button>
                <i-button type="success" @click="queryTodayEnergy"><i class="fa fa-legal"></i>&nbsp;当日运动挖矿能量总量</i-button>
                #if($shiro.hasPermission("accountsnapshotenergy:info"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;查看</i-button>
                #end
                #if($shiro.hasPermission("accountsnapshotenergy:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("accountsnapshotenergy:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("accountsnapshotenergy:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>
        </Row>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="accountSnapshotEnergy" :rules="ruleValidate" :label-width="130">
            <Form-item label="能量值总量" prop="total">
                <i-input v-model="accountSnapshotEnergy.total" placeholder="能量值总量" readonly/>
            </Form-item>
            <Form-item label="能量值记录总量" prop="totalDetail">
                <i-input v-model="accountSnapshotEnergy.totalDetail" placeholder="能量值记录总量" readonly/>
            </Form-item>
            <Form-item label="运动兑换能量" prop="exTotal">
                <i-input v-model="accountSnapshotEnergy.exTotal" placeholder="运动兑换能量" readonly/>
            </Form-item>
            <Form-item label="购买能量值总量" prop="buyTotal">
                <i-input v-model="accountSnapshotEnergy.buyTotal" placeholder="购买能量值总量" readonly/>
            </Form-item>
            <Form-item label="任务能量值" prop="extractTotal">
                <i-input v-model="accountSnapshotEnergy.extractTotal" placeholder="任务能量值" readonly/>
            </Form-item>
            <Form-item label="运动挖矿能量值总量" prop="taskTotal">
                <i-input v-model="accountSnapshotEnergy.taskTotal" placeholder="运动挖矿能量值总量" readonly/>
            </Form-item>
            <Form-item label="释放SPC" prop="releaseSpc">
                <i-input v-model="accountSnapshotEnergy.releaseSpc" placeholder="释放SPC" readonly/>
            </Form-item>
            <Form-item label="持有spc" prop="holdSpc">
                <i-input v-model="accountSnapshotEnergy.holdSpc" placeholder="持有SPC" readonly/>
            </Form-item>
            <Form-item label="游戏消耗" prop="lotteryPrice">
                <i-input v-model="accountSnapshotEnergy.lotteryPrice" placeholder="游戏消耗" readonly/>
            </Form-item>
            <Form-item label="游戏奖励" prop="lotterySpend">
                <i-input v-model="accountSnapshotEnergy.lotterySpend" placeholder="游戏奖励" readonly/>
            </Form-item>
            <Form-item label="统计日期" prop="date">
                <i-input v-model="accountSnapshotEnergy.date" placeholder="统计日期"  readonly/>
            </Form-item>
            <Form-item label="添加时间" prop="addTime">
                <!--<i-input v-model="accountSnapshotEnergy.addTime" placeholder="添加时间"/>-->
                <Date-picker :value="accountSnapshotEnergy.addTime" type="datetime" format="yyyy-MM-dd HH:mm:ss" placeholder="添加时间" readonly ></Date-picker>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
                <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
	</Card>
</div>

<script src="${rc.contextPath}/js/statistics/accountsnapshotenergy.js?_${date.systemTime}"></script>
</body>
</html>